/**
 * Created by Administrator on 2017/2/13.
 */
import { Component } from '@angular/core';
import { UserlistService } from './userlist.serve';
import { Router, ActivatedRoute, Params } from '@angular/router';

@Component({
  moduleId: module.id,
  selector: 'my-userlist',
  templateUrl: 'userlist.html',
  providers:[ UserlistService ]
})
export class UserlistComponent {
  private userinfro='';
  constructor(
      private UserlistService:UserlistService,
      private route: ActivatedRoute,
      private router: Router,
  ){}
  //得到会员的信息
  getfac(){
    this.UserlistService.grtinfro()
        .subscribe(
            res =>{this.userinfro =res;
              console.log(this.userinfro)},
            error =>  { console.log(error)}
        );
  }

  ngOnInit() {
    this.getfac()
  }
}
